{echo:JS::import('dialog?skin=brief');}
{echo:JS::import('dialogtools');}
{echo:JS::import('validator');}
{echo:JS::import('form');}
{echo:JS::import('date');}
<form action="" method="post">
    <div class="tools_bar clearfix">
    <!-- 
        <a class="icon-checkbox-checked icon-checkbox-unchecked" href="javascript:;" onclick="tools_select('id[]',this)" title="全选" data="true"> 全选 </a>
         -->
         <a href="javascript:;" class="icon-loop-2" onclick="tools_reload()"> 刷新</a>
        <a  class="icon-plus" href="{url:/content/my_ad_edit}" title="添加"> 添加</a>
        <!-- <a href="javascript:;" class="icon-loop-2" onclick="tools_reload()"> 刷新</a> -->
    </div>
        <table class="default">
            <tr>
                <!-- <th style="width:30px">选择</th> -->
                <th style="width:70px">操作</th>
                <th style="width:100px">名称</th>
                <th style="width:50px">顺序</th>
                <th>相关商品</th>
            </tr>
            {list:items=$list}
            <tr align="left">
            	
            	<td style="width:70px" class="btn_min">
            	    <div class="operat hidden"><a  class="icon-cog action" href="javascript:;"> 处理</a>
            	        <div class="menu_select">
            	            <ul>
                    <!-- 
                    <li><a class="icon-pencil" href="{url:/app/category_edit/id/$item[id]}"> 编辑</a></li>
                    -->

                                <li><a class="icon-close" href="javascript:;" onclick="confirm_action('{url:/app/category_del/id/$item[id]}')"> 删除</a></li>
               	            </ul>
               	        </div>
               	   </div>
               	</td>
               	<td>
               		{echo:Common::getCategoryNameByCid($item['category_id'])}
               	</td>
            	
            	<td>{$item['ad_order']}</td>
            	
            	<td>
            		<table>
            			<tr>
            				{list:items=$item['goods_list'] item=$k}
            					<td align='center'>
            						<p>
            							<img src="{$k['img']}" width="100px" height="80px;"/>
            						</p>
            						<p>
            							{$k['name']}
            						</p>
            						<p>
            							<a href="{url:/app/ad_del/category_id/$item[category_id]/goods_id/$k[goods_id]}" onclick="return confirm('确定要执行此操作吗?');">删除</a>
            						</p>
            					</td>
            				{/list}
            			</tr>
            		</table>
            		
            		
            		
            	</td>
            	
            	
            </tr>
            {/list}
            </table>
    </form>